package cate.game.rank.h.adapter;

import cate.game.GameBody;
import cate.game.framework.advanced.AdvancedRankHandler;
import cate.game.framework.advanced.AdvancedRankHandlerAdapter;
import cate.game.pvp.eliterace.data.EliteRaceRank;

import static cate.game.pvp.eliterace.handler.EliteRaceRankHandler.RANK_ID;

public class EliteRaceRankHandlerAdapter extends AdvancedRankHandlerAdapter<EliteRaceRank> {

    public EliteRaceRankHandlerAdapter() {
        super(EliteRaceRankHandlerAdapter::getRankHandler, RANK_ID);
    }

    public static AdvancedRankHandler<EliteRaceRank> getRankHandler(GameBody gameBody) {
        return gameBody.pvp.eliteRace.getHandler();
    }
}
